# %%
from icecream import ic
val=np.random.rand(3,3)
ic(val)
elem_define=np.array([[1,2,3],[2,3,4],[1,4,5]])
p=elem_define==1
ic(p)
pp=val[p]
ic(pp)
# %%
import numpy as np

np.vstack(
    (
        np.linspace(0, 8, 8),  # cell 0
        np.linspace(0, 12, 8),  # cell 1
        np.linspace(0, 16, 8),  # cell 2
        np.linspace(0, 20, 8),  # cell 3
    ),
)
# %%
import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
msg = QMessageBox()
msg.setIcon(QMessageBox.Information)
msg.setText("This is a message box")
msg.setInformativeText("This is additional information")
msg.setWindowTitle("MessageBox demo")
msg.setDetailedText("The details are as follows:")

# %%
# %%
import dill
with open("L:\\EF2D\\tests\\result\\job-c3d8-.dill",'rb') as f:
    data=dill.load(f)

from EF2D.Constants import *
# %%

import numpy as np
t=np.random.rand(3,3)
print(f"t={t}")

mass=np.eye(3)*12
print(f"mass={mass}")

print(f"t.T*mass*T={t.T.dot(mass).dot(t)}")

# %%
